Skip to content

gcrhelper: add automatic GCR/Artifact Registry auth on GCE#82

Open
jossy wants to merge 1 commit intocloudfoundry:mainfrom
jossy:main
Open

gcrhelper: add automatic GCR/Artifact Registry auth on GCE#82
jossy wants to merge 1 commit intocloudfoundry:mainfrom
jossy:main

Conversation

@jossy
Copy link
Copy Markdown

@jossy jossy commented Apr 10, 2026

Summary

Part of cloudfoundry/diego-release#1124. See that PR for full details.

Adds GCR credential lookup to convertCredentials() in conversion_helpers.go: if no credentials are stored for a docker image and the URL matches a GCR/Artifact Registry host, the GCE instance metadata server is queried for an OAuth2 token. Falls back silently on non-GCE environments.

Backward Compatibility

Breaking Change? No

The new code only runs when no credentials are stored for the image. All existing behaviour is preserved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant